package com.juc.juc_project.threadbase.priority;

/**
 * Created by fangjicai on 2020/6/27.
 */
public class PriorityTest {
    public static void main(String[] args) {
        Thread1 thread1 = new Thread1();
        thread1.setName("thread1");
        thread1.setPriority(4);
        Thread2 thread2 = new Thread2();
        thread2.setName("thread2");
        thread2.setPriority(8);
        thread2.start();
        thread1.start();
    }
}
